Document Solutions for PDF
GrapeCity.Documents.Pdf Assembly / GrapeCity.Documents.Pdf Namespace / GcGraphicsExt Class / DrawComboBox Method / DrawComboBox(GcGraphics,RectangleF,IList<ChoiceFieldItem>,Int32,Font,Single,Color,Color,Border,Boolean,Single,Boolean) Method
The graphics to draw on.
The control bounds.
The control items.
The index of an item in items the text of which to draw.
The font.
The font size.
The fore color.
The background color.
The border definition.
Indicates whether to draw the border in red, ignoring the color specified in border.
The rotation angle, should be a multiple of 90.
Indicates whether to draw drop-down button.

In This Topic
    DrawComboBox(GcGraphics,RectangleF,IList<ChoiceFieldItem>,Int32,Font,Single,Color,Color,Border,Boolean,Single,Boolean) Method
    In This Topic
    Draws a combo box.
    Syntax
    'Declaration
     
    Public Overloads Shared Sub DrawComboBox( _
       ByVal g As GcGraphics, _
       ByVal bounds As System.Drawing.RectangleF, _
       ByVal items As System.Collections.Generic.IList(Of ChoiceFieldItem), _
       ByVal selectedIndex As System.Integer, _
       ByVal font As Font, _
       ByVal fontSize As System.Single, _
       ByVal foreColor As System.Drawing.Color, _
       ByVal backColor As System.Drawing.Color, _
       ByVal border As Border, _
       ByVal required As System.Boolean, _
       ByVal orientation As System.Single, _
       ByVal drawButton As System.Boolean _
    ) 
    public static void DrawComboBox( 
       GcGraphics g,
       System.Drawing.RectangleF bounds,
       System.Collections.Generic.IList<ChoiceFieldItem> items,
       System.int selectedIndex,
       Font font,
       System.float fontSize,
       System.Drawing.Color foreColor,
       System.Drawing.Color backColor,
       Border border,
       System.bool required,
       System.float orientation,
       System.bool drawButton
    )

    Parameters

    g
    The graphics to draw on.
    bounds
    The control bounds.
    items
    The control items.
    selectedIndex
    The index of an item in items the text of which to draw.
    font
    The font.
    fontSize
    The font size.
    foreColor
    The fore color.
    backColor
    The background color.
    border
    The border definition.
    required
    Indicates whether to draw the border in red, ignoring the color specified in border.
    orientation
    The rotation angle, should be a multiple of 90.
    drawButton
    Indicates whether to draw drop-down button.
    See Also